﻿using System;
using UnityEngine;

namespace Sizebox.CharacterEditor
{
	// Token: 0x02000243 RID: 579
	public class ExtraView : BaseSkeletonHandleView
	{
		// Token: 0x17000171 RID: 369
		// (get) Token: 0x06000C61 RID: 3169 RVA: 0x00064C82 File Offset: 0x00062E82
		public override string DataId
		{
			get
			{
				return "extra";
			}
		}

		// Token: 0x17000172 RID: 370
		// (get) Token: 0x06000C62 RID: 3170 RVA: 0x00064C89 File Offset: 0x00062E89
		protected override string DATA_FILE_NAME
		{
			get
			{
				return "extraview.dat";
			}
		}

		// Token: 0x06000C63 RID: 3171 RVA: 0x00064C90 File Offset: 0x00062E90
		protected override void LoadDefaultKeys(CharacterEditor targetEditor)
		{
			base.Keys.Clear();
			Animator animator = targetEditor.Animator;
			if (!animator)
			{
				return;
			}
			Transform boneTransform = animator.GetBoneTransform(HumanBodyBones.Head);
			if (boneTransform)
			{
				EditBone[] componentsInChildren = boneTransform.GetComponentsInChildren<EditBone>();
				foreach (EditBone editBone in componentsInChildren)
				{
					base.Keys.Add(editBone.Key);
				}
			}
			Transform boneTransform2 = animator.GetBoneTransform(HumanBodyBones.LeftHand);
			if (boneTransform2)
			{
				EditBone[] componentsInChildren2 = boneTransform2.GetComponentsInChildren<EditBone>();
				foreach (EditBone editBone2 in componentsInChildren2)
				{
					base.Keys.Add(editBone2.Key);
				}
			}
			boneTransform2 = animator.GetBoneTransform(HumanBodyBones.RightHand);
			if (boneTransform2)
			{
				EditBone[] componentsInChildren3 = boneTransform2.GetComponentsInChildren<EditBone>();
				foreach (EditBone editBone3 in componentsInChildren3)
				{
					base.Keys.Add(editBone3.Key);
				}
			}
		}
	}
}
